package cn.sc.allinpay.allfavour.business.common.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description：折扣
 * author：pany
 * on 2018/8/2 16:25
 */
public class DiscountData implements Parcelable {
    private String proportion;//折扣
    private String startAmt;//起折金额
    private String maxAmt;//封顶金额
    private String isShare;//是否外部同享
    private String startTime;//起始时间
    private String endTime;//结束时间

    public DiscountData() {

    }

    protected DiscountData(Parcel in) {
        proportion = in.readString();
        startAmt = in.readString();
        maxAmt = in.readString();
        isShare = in.readString();
        startTime = in.readString();
        endTime = in.readString();
    }

    public String getProportion() {
        return proportion;
    }

    public void setProportion(String proportion) {
        this.proportion = proportion;
    }

    public String getStartAmt() {
        return startAmt;
    }

    public void setStartAmt(String startAmt) {
        this.startAmt = startAmt;
    }

    public String getMaxAmt() {
        return maxAmt;
    }

    public void setMaxAmt(String maxAmt) {
        this.maxAmt = maxAmt;
    }

    public String getIsShare() {
        return isShare;
    }

    public void setIsShare(String isShare) {
        this.isShare = isShare;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public static final Creator<DiscountData> CREATOR = new Creator<DiscountData>() {
        @Override
        public DiscountData createFromParcel(Parcel in) {
            return new DiscountData(in);
        }

        @Override
        public DiscountData[] newArray(int size) {
            return new DiscountData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(proportion);
        parcel.writeString(startAmt);
        parcel.writeString(maxAmt);
        parcel.writeString(isShare);
        parcel.writeString(startTime);
        parcel.writeString(endTime);
    }
}
